import $request from '../utils/request'
/**
 * 上传图片
 * @param {file} data 
 * @param {post} method 
 */ 
export function uploadImage(data, method = 'post') {
  return $request({
    url: 'upload',
    method,
    data
  }, true)
}